package net;

import java.security.PublicKey;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import net.schmizz.sshj.transport.verification.HostKeyVerifier;

public class AllHostsVeryfier implements HostKeyVerifier {

	private static final Logger logger = LoggerFactory.getLogger(AllHostsVeryfier.class);
	@Override
	public boolean verify(String hostname, int port, PublicKey key) {
		logger.info("Trusting host {}:{}", hostname, port);
		return true;
	}

}
